package com.eaoa.uc.address.form;

import com.eaoa.base.EABaseForm;
import com.eaoa.vo.pub.PubCity;
import com.stony.core.util.CoreUtils;

public class PubCityForm extends EABaseForm{

	// primary key
	private String cityno;

	// fields
	private String cityname;
	private String parentno;
	private String layer;
	private String sort;
	private String islock;
	
	public void setVO(PubCity vo){
		this.setCityno(CoreUtils.formatString(vo.getCityno()));
		this.setCityname(vo.getCityname());
		this.setParentno(CoreUtils.formatString(vo.getParentno()));
		this.setLayer(CoreUtils.formatString(vo.getLayer()));
		this.setSort(CoreUtils.formatString(vo.getSort()));
		this.setIslock(vo.getIslock());	
	}
	
	public PubCity getVO(){
		PubCity po = new PubCity();
		po.setCityno(CoreUtils.parseLong(this.getCityno()));
		po.setCityname(this.getCityname());
		po.setParentno(CoreUtils.parseLong(this.getParentno()));
		po.setLayer(CoreUtils.parseLong(this.getLayer()));
		po.setSort(CoreUtils.parseLong(this.getSort()));
		po.setIslock(this.getIslock());	
		return po;
	}
	
	public String getCityno() {
		return cityno;
	}
	public void setCityno(String cityno) {
		this.cityno = cityno;
	}
	public String getCityname() {
		return cityname;
	}
	public void setCityname(String cityname) {
		this.cityname = cityname;
	}
	public String getParentno() {
		return parentno;
	}
	public void setParentno(String parentno) {
		this.parentno = parentno;
	}
	public String getLayer() {
		return layer;
	}
	public void setLayer(String layer) {
		this.layer = layer;
	}
	public String getSort() {
		return sort;
	}
	public void setSort(String sort) {
		this.sort = sort;
	}
	public String getIslock() {
		return islock;
	}
	public void setIslock(String islock) {
		this.islock = islock;
	}

}
